package com.hellomeng.control;

public class JieCheng {
    public static void main(String[] args) {
        //1!+2!+3!.....10!
        int sum = 0;
        for (int i=1;i<=10;i++){
            int tmp = 1;
            for (int j=1;j<=i;j++){
                tmp = tmp * j;
            }
            sum = sum + tmp;
        }
        System.out.println(sum);
    }
}
